package com.core.reach.cloudhub.domain;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * @author ga.zhang
 * @version V1.0
 * @description: TODO
 * @date 2020/3/31 19:16
 **/
@Data
@ToString
@NoArgsConstructor
@AllArgsConstructor
public class Order implements Serializable {

    private static final long serialVersionUID = -5330293475727482151L;

    /**
     *  主键
     */
    private Long id;
    /**
     *  用户ID
     */
    private Long userId;
    /**
     *  产品ID
     */
    private Long productId;
    /**
     *  数量
     */
    private Integer count;
    /**
     *  金额
     */
    private BigDecimal money;
    /**
     *  订单状态：0-创建中，1-已完结
     */
    private Integer status;
}
